package model

import "time"

type User struct {
	BaseModel
	Mobile   string `gorm:"index:idx_mobile;unique;type:varchar(11);not null"`
	Password string `gorm:"type:varchar(20)"`
	NickName string `gorm:"type:varchar(20)"`
	Birthday *time.Time
	Gender   string `gorm:"column:gender;default:male;type:varchar(6); comment:male男"`
	Role     int32  `gorm:"column:role;default:1;type:int; comment:1普通用户，2管理员"`
}

//func (User) TableName() string {
//	return "user"
//}
